home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / snobol4 / misc.lha / compress.bdl / Makefile < prev    next >
Encoding:
Makefile  |  1993-07-24  |  707 b   |  27 lines

  1. #
  2. #    @(#)Makefile    5.5 (Berkeley) 9/18/85
  3. #
  4. COMFLAGS=-DBSD4_2 -O -DSACREDMEM=256000
  5. BIN=${DESTDIR}/usr/ucb
  6.  
  7. compress: compress.c USERMEM
  8.     cc $(COMFLAGS) -DUSERMEM=`cat USERMEM` -o compress compress.c
  9.  
  10. # USERMEM may have to be set by hand.  It should contain the amount of
  11. # available user memory in bytes.  Set it to zero, for physical memory
  12. # less than 1 Meg.
  13. USERMEM:
  14.     sh usermem.sh > USERMEM
  15.  
  16. install: compress
  17.     install -s compress $(BIN)
  18.     rm -f $(BIN)/uncompress $(BIN)/zcat
  19.     ln $(BIN)/compress $(BIN)/uncompress
  20.     ln $(BIN)/compress $(BIN)/zcat
  21.  
  22. # Temporarily don't delete USERMEM.  When chroot'ed to /nbsd, usermem.sh
  23. # fails totally.
  24. clean:
  25.     rm -f compress core errs
  26. #    rm -f compress USERMEM core errs
  27.